package de.tum.in.eist.im.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import de.tum.in.eist.im.client.domain.Message;
import de.tum.in.eist.im.client.domain.NewMessagesChunk;
import de.tum.in.eist.im.client.domain.User;

@RemoteServiceRelativePath("chatServiceBeta")
public interface ChatServiceBeta extends RemoteService {
	public NewMessagesChunk getNewMessages(long t);
	public List<Message> getHistory(long t);
	public List<User> getLoggedInUsers();
	public boolean login(User u);
	public boolean logout(User u);
	public boolean registerNewUser(User u);
	public void sendMessage(Message m);
	
}
